// MIME(Multipurpose Internet Mail Extensions)多用途互联网邮件扩展类型

const mime = require('mime')
const path = require('path')

module.exports = function (fileName) {
	const ext = path.extname(fileName)
	return ext? mime.getType(ext):mime.getType('txt')
}
